package com.hoshiibuy.platform.feign;

import com.hoshiibuy.common.rpc.Response;
import com.hoshiibuy.platform.feign.hystrix.HystrixCompanyFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(name = "hoshiibuy-company", fallback = HystrixCompanyFeignFallback.class)
public interface CompanyService {

    @GetMapping(value = "/company/")
    Response getById(Long id);
}
